349c0d1c11a3a419274639924a124379bdce4e7e,src/main/java/com/netflix/elasticcar/backup/RestoreBackupManager.java,RestoreBackupManager,runRestore,#String#String#String#String#,78
Before Change
.setWaitForCompletion(true)
.setIndices(commaSeparatedIndices) //"test-idx-*", "-test-idx-2"
.execute()
.actionGet();
logger.info("Restore Status = "+restoreSnapshotResponse.status().toString());
if(restoreSnapshotResponse.status() == RestStatus.OK)
After Change
logger.info("Indices param : <"+commaSeparatedIndices+">");
RestoreSnapshotResponse restoreSnapshotResponse = null;
if (commaSeparatedIndices != null) {
//This is a blocking call. It'll wait until Restore is finished.
restoreSnapshotResponse = esTransportClient.admin().cluster().prepareRestoreSnapshot(repoWithSuffix, snapshotN)
.setWaitForCompletion(true)
.setIndices(commaSeparatedIndices) //"test-idx-*", "-test-idx-2"
.execute()
.actionGet();
}else{
// Not Setting Indices explicitly -- Seems to be a bug in Elasticsearch
restoreSnapshotResponse = esTransportClient.admin().cluster().prepareRestoreSnapshot(repoWithSuffix, snapshotN)